package com.ruoyi.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.mapper.ExpenseClaimMapper;
import com.ruoyi.project.domain.ExpenseClaim;
import com.ruoyi.project.service.IExpenseClaimService;

/**
 * 合同报销Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-06
 */
@Service
public class ExpenseClaimServiceImpl implements IExpenseClaimService 
{
    @Autowired
    private ExpenseClaimMapper expenseClaimMapper;

    /**
     * 查询合同报销
     * 
     * @param claimId 合同报销主键
     * @return 合同报销
     */
    @Override
    public ExpenseClaim selectExpenseClaimByClaimId(Long claimId)
    {
        return expenseClaimMapper.selectExpenseClaimByClaimId(claimId);
    }

    /**
     * 查询合同报销列表
     * 
     * @param expenseClaim 合同报销
     * @return 合同报销
     */
    @Override
    public List<ExpenseClaim> selectExpenseClaimList(ExpenseClaim expenseClaim)
    {
        return expenseClaimMapper.selectExpenseClaimList(expenseClaim);
    }

    /**
     * 新增合同报销
     * 
     * @param expenseClaim 合同报销
     * @return 结果
     */
    @Override
    public int insertExpenseClaim(ExpenseClaim expenseClaim)
    {
        return expenseClaimMapper.insertExpenseClaim(expenseClaim);
    }

    /**
     * 修改合同报销
     * 
     * @param expenseClaim 合同报销
     * @return 结果
     */
    @Override
    public int updateExpenseClaim(ExpenseClaim expenseClaim)
    {
        return expenseClaimMapper.updateExpenseClaim(expenseClaim);
    }

    /**
     * 批量删除合同报销
     * 
     * @param claimIds 需要删除的合同报销主键
     * @return 结果
     */
    @Override
    public int deleteExpenseClaimByClaimIds(Long[] claimIds)
    {
        return expenseClaimMapper.deleteExpenseClaimByClaimIds(claimIds);
    }

    /**
     * 删除合同报销信息
     * 
     * @param claimId 合同报销主键
     * @return 结果
     */
    @Override
    public int deleteExpenseClaimByClaimId(Long claimId)
    {
        return expenseClaimMapper.deleteExpenseClaimByClaimId(claimId);
    }
}
